package com.qianbei.common.base;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;
import android.view.WindowManager;

import com.android.volley.ext.tools.HttpTools;
import com.qianbei.common.init.SystemConfig;

import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class BaseApplication extends Application {

	public static BaseApplication mApplication;

	public static JSONObject mCarBluetooth;
	public static Map<String,String> mCarMap = new HashMap<>();


	/*** 屏幕宽度值 */
	public static int screenWidth;
	/*** 屏幕高度值 */
	public static int screenHeight;


	public static boolean isBrowsLauch;
	public static SystemConfig systemConfig;  
	@Override
	public void onCreate() {
		super.onCreate();
		MultiDex.install(this);
		BaseApplication.mApplication = this;
		HttpTools.init(this);
		WindowManager window = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
		screenWidth = window.getDefaultDisplay().getWidth();
		screenHeight = window.getDefaultDisplay().getHeight();
		systemConfig =SystemConfig.getInstance();
	}


	@Override
	public void onTerminate() {
		super.onTerminate();
	}
}